import request from '../request.js'

import {goldchartURL,goldgoldAccumulateURL,addGoldUrl} from '../urls.js'

export default{
	///折线图
	goldPriceChart(){
		console.log('apis');
		return request({ 
			url:goldchartURL,
			method:'GET',
		})
	},
	
	///黄金详情
	getGoldAccumulate(){
		return request({
			url: goldgoldAccumulateURL,
			method:'GET'
		})
	},
	//黄金创建订单
	addGoldList(data){
		return request({
			url:addGoldUrl,
			method:'POST',
			data
		})
	}
}